<?php
	class XpathInfo
	{
		var $id;
		var $xpathTitle;
		var $xpathHead;
		var $xpathContent;
		var $xpathImage;
		var $url;
		var $domain;
	}
	class XpathDAL
	{
		static function Insert($x)
		{
			global $db;
			$sql='insert into Xpath values(null,"'.$x->xpathTitle.'","'.$x->xpathHead.'","'.$x->xpathContent.'","'.$x->xpathImage.'","'.$x->url.'","'.$x->domain.'")';
			$db->sql_query($sql);
		}
	}
	class XpathService
	{
		static function Insert($x)
		{
			return XpathDAL::Insert($x);
		}
	}
?>